<!DOCTYPE html>
<html lang="zh">
<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
  <title>我的签到记录</title>
  <style>
    body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial; margin:0; background:#f7f8fa;}
    .wrap{max-width:640px; margin:0 auto; padding:12px;}
    .item{background:#fff; border-radius:10px; padding:12px; margin-bottom:10px; box-shadow:0 2px 8px rgba(0,0,0,.05);} 
    .row{display:flex; justify-content:space-between; margin-top:6px; color:#555; font-size:14px;}
    .tag{display:inline-block; padding:2px 8px; border-radius:999px; font-size:12px;}
    .green{background:#e8faf0; color:#2ca26b;}
    .red{background:#ffecec; color:#dd2b2b;}
    .blue{background:#e6f0ff; color:#1d5fd6;}
    .empty{color:#888; text-align:center; margin-top:30px;}
    a.back{display:block; text-align:center; margin:14px; color:#999; text-decoration:none;}
  </style>
</head>
<body>
<div class="wrap">
  {notempty name="list"}
  {foreach $list as $v}
  <div class="item">
    <div class="row"><div>门店</div><div>{$v.store_name|default='-'}</div></div>
    <div class="row"><div>开始</div><div>{$v.start_time|default='-'}</div></div>
    <div class="row"><div>结束</div><div>{$v.end_time|default='-'}</div></div>
    <div class="row"><div>时长(分钟)</div><div>{$v.duration_minutes|default=0}</div></div>
    <div class="row"><div>积分</div><div>{$v.points|default=0}</div></div>
    <div class="row"><div>状态</div>
      <div>
        {if $v.status==1}<span class="tag green">正常</span>
        {elseif $v.status==2/}<span class="tag red">无效</span>
        {else/}<span class="tag blue">进行中</span>
        {/if}
      </div>
    </div>
  </div>
  {/foreach}
  {else/}
  <div class="empty">暂无记录</div>
  {/notempty}
  <a class="back" href="{:url('center')}">返回</a>
</div>
</body>
</html>

